<!--
    Created by Artisteer v3.0.0.35414
    Base template (without user's data) checked by http://validator.w3.org : "This page is valid XHTML 1.0 Transitional"
-->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" />
<title>
<?php 	
	include_once '../libraries/xl_san_pham.php';
	$dt_xl_san_pham=new xl_san_pham;
	
	include_once '../libraries/xl_loai_san_pham.php';
	$dt_xl_loai_san_pham=new xl_loai_san_pham;
	
	if(strpos($_SERVER['SCRIPT_NAME'],'new_list')) echo 'Sách mới';
	if(strpos($_SERVER['SCRIPT_NAME'],'more_sale_list')) echo 'Sách bán chạy';
	if(strpos($_SERVER['SCRIPT_NAME'],'more_view_list')) echo 'Sách xem nhiều';
	if(strpos($_SERVER['SCRIPT_NAME'],'search')) echo 'Tìm kiếm sách';
	if(strpos($_SERVER['SCRIPT_NAME'],'home')) echo 'Trang chủ';
	if(strpos($_SERVER['SCRIPT_NAME'],'recruitment')) echo 'Giới thiệu công ty';
	if(strpos($_SERVER['SCRIPT_NAME'],'contact')) echo 'Liên hệ';
	if(strpos($_SERVER['SCRIPT_NAME'],'change_pass')) echo 'Thay đổi mật khẩu';
	if(strpos($_SERVER['SCRIPT_NAME'],'forgot_pass')) echo 'Quên mật khẩu';
	if(strpos($_SERVER['SCRIPT_NAME'],'register')) echo 'Đăng ký thành viên';
	if(strpos($_SERVER['SCRIPT_NAME'],'update_information')) echo 'Cặp nhật thông tin';
	if(strpos($_SERVER['SCRIPT_NAME'],'orders/cart')) echo 'Chi tiết giỏ hàng';
	if(strpos($_SERVER['SCRIPT_NAME'],'orders/order')) echo 'Thông tin đơn đặt hàng';
	if(strpos($_SERVER['SCRIPT_NAME'],'orders/payment')) echo 'Thanh toán';
	if(strpos($_SERVER['SCRIPT_NAME'],'thanks')) echo 'Cảm ơn';	
	if(strpos($_SERVER['SCRIPT_NAME'],'products/list'))
	{
		if(strpos($_SERVER['QUERY_STRING'],'&page'))
		{
			$ma=str_replace("cate_id=","",$_SERVER['QUERY_STRING']);
			$ma=str_replace(strpos($ma,'&'),"",$ma);
			$loai_san_pham_con=$dt_xl_loai_san_pham->xem($ma);
			$loai_san_pham_cha=$dt_xl_loai_san_pham->xem($loai_san_pham_con['ma_loai_cha']);
			$trang=strpos($_SERVER['QUERY_STRING'],'&');
			$trang=str_replace("page=","",$trang);
			echo $loai_san_pham_cha['ten'].' - '.$loai_san_pham_con['ten'].' | Trang '.$trang;
		}
		else
		{	
			$ma=str_replace("cate_id=","",$_SERVER['QUERY_STRING']);
			$loai_san_pham_con=$dt_xl_loai_san_pham->xem($ma);
			$loai_san_pham_cha=$dt_xl_loai_san_pham->xem($loai_san_pham_con['ma_loai_cha']);	
			echo $loai_san_pham_cha['ten'].' - '.$loai_san_pham_con['ten'];
		}
	}
	if(strpos($_SERVER['SCRIPT_NAME'],'products/details'))
	{
		$ma=str_replace("id=","",$_SERVER['QUERY_STRING']);
		$san_pham=$dt_xl_san_pham->xem($ma);	
		echo $san_pham['ten'];
	}
	if(strpos($_SERVER['SCRIPT_NAME'],'')) echo '';
//RewriteRule ^thanh-vien-([a-zA-Z0-9_-]+)/xac-nhan-([a-zA-Z0-9_-]+).html$ members/confirm.php?user=$1&id=$2

//RewriteRule ^danh-sach/tim-kiem-trang-([a-zA-Z0-9_-]+).html$ products/search.php?page=$1
?>
</title>
<!--begin: jquery-->
<script type="text/javascript" src="../js/jquery/jquery-1.4.4.js"></script>
<script type="text/javascript" src="../js/jquery/ui/jquery-ui-1.8.9.custom.js"></script>
<script type="text/javascript" src="../js/ckeditor/ckeditor.js"></script>
<link rel="stylesheet" href="../js/jquery/themes/blitzer/jquery-ui-1.8.16.custom.css" type="text/css" media="screen" />
<link rel="stylesheet" href="../js/jquery/themes/ui-lightness/jquery-ui-1.8.16.custom.css" type="text/css" media="screen" />
<!--end: jquery-->

<!--begin: my-->
<link rel="stylesheet" href="../css/style.css" type="text/css" media="screen" />
<!--end: my-->

<link rel="stylesheet" href="../skins/red/style.css" type="text/css" media="screen" />
<!--[if IE 6]><link rel="stylesheet" href="../skins/do/style.ie6.css" type="text/css" media="screen" /><![endif]-->
<!--[if IE 7]><link rel="stylesheet" href="../skins/do/style.ie7.css" type="text/css" media="screen" /><![endif]-->

<script type="text/javascript" src="../skins/red/script.js"></script>

<!--begin: sagscroller-->

<link rel="stylesheet" type="text/css" href="../js/jquery/external/sagscroller/sagscroller.css" />
<script src="../js/jquery/external/sagscroller/sagscroller.js"></script>
<link rel="stylesheet" type="text/css" href="../js/jquery/external/sagscroller/config.css" />
<script src="../js/jquery/external/sagscroller/config.js"></script>
<link rel="icon" href="../images/favicon.ico" type="image/gif">
<!--end: sagscroller-->
<script src="../js/jqFancyTransitions.1.8.min.js"></script>
